| peekDataset {GCDkit} | R Documentation |
Both functions restore the previously stored dataset and make it current.
peekDataset(which.dataset=NULL)
selectDataset()
which.dataset |
numeric or character; a sequence number or name of the stored dataset. |
The function 'peekDataset' restores a dataset saved previously into memory by
the function 'pokeDataset'. This means that it assigns
all global variables specified by individual items of the list 'WRCube'.
These typically are: 'WR', 'WRanh', 'milli',
'labels', 'filename', 'groups' and 'grouping'.
The function 'selectDataset' provides a graphical interface to
'peekDataset', i.e. shows a list box filled by the names of datasets
currently stored in the memory.
None. But several global variables, among others 'WR', 'WRanh',
'milli' and 'labels', are affected.
The name of the current dataset is stored in 'dataset.name'.
Vojtěch Janoušek, vojtech.janousek@geology.cz
sampleDataset("sazava")
# stored as sazava in WRCube
assignColVar("MgO","blues")
assign1symb(15)
# store a new copy in the WRCube
pokeDataset("coloured sazava")
data(swiss)
accessVar("swiss")
# stored as swiss in WRCube
peekDataset("sazava")
binary("SiO2","Ba")
peekDataset("coloured sazava")
binary("SiO2","Ba")
peekDataset("swiss")
binary("Catholic","Education",pch=15,col="darkgreen")
# Second dataset within the WRCube
names(WRCube)
peekDataset(2)
binary("SiO2","Sr")